{extend name="../public/header" /}
{block name="body"}
<body>
{include file="../public/top" uname="$roleInfo.uname" lv="$roleInfo.ulv" ls="$roleInfo.uyxb" jp="$roleInfo.uczb" /}
<div class="subject main">
	<div class="layui-row">
		<div class="content">
			<div class="current">
				<span class="position">{$roleInfo.map.mname}</span>
				<span class="state">{if $roleInfo.map.ispvp==0}[安全区]{else/}[PVP]{/if}</span>
				<span class="info ajax-goto" data-url="{:url('index')}">返回</span>
			</div>
			<div class="npc">
				<div class="layui-card">
					<div class="layui-card-header">[Lv:{$info.nlv}] {$info.nname} <span class="nickname">{if $info.nickname!=''}<{$info.nickname}>{/if}</span></div>
					<div class="layui-card-body">{$info.ninfo|default=''}</div>
				</div>
				<div class="layui-panel">
					<div style="padding:10px;">
						{foreach name='info.task_list' item='vo'}
						<p>
							{if $vo.status==1}
							<img src="/public/index/image/wen.gif">
							{/if}
							{if $vo.status==2}
							<img src="/public/index/image/tan.gif">
							{/if}
							<a class="ajax-goto" data-url="{:url('task',['id'=>$vo.id,'nid'=>$info.id])}">{$vo.name}</a>
						</p>
						{/foreach}
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
</body>
{/block}
{block name="script"}
<script>
	layui.use(['jquery', 'form', 'layajax', 'upload', 'flow', 'element'], function () {
		var $ = layui.jquery
				, layajax = layui.layajax
				, upload = layui.upload
				, element = layui.element
				, flow = layui.flow
				, form = layui.form;

		form.render();
	});
</script>
{/block}
